﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Sponsors/SponsorMaster.Master"
    AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Nivdal.Sponsors.Test" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:HiddenField ID="IsImageChecked" runat="server" />
    <asp:HiddenField ID="IsBannerExist" runat="server" />
    <asp:Label ID="MessageLabel" runat="server" Text=""></asp:Label>
    <table style="width: 700px;">
        <tr>
            <td>
                <asp:Label ID="NameTitleLabel" runat="server" AssociatedControlID="NameTextBox" Text="<%$ Resources:SponsorsResource, NewSponsor_Name %>"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="NameTextBox" runat="server" Width="200px" MaxLength="500"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="NameTextBox"
                    ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_NameIsRequire %>" Display="Dynamic"
                    ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="EmailTitleLabel" runat="server" AssociatedControlID="EmailTextBox"
                    Text="<%$ Resources:SponsorsResource, NewSponsor_Email %>"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="EmailTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="EmailTextBox"
                    Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_EmailIsRequire %>"
                    ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="EmailValidationExpressionValidator" runat="server"
                    ControlToValidate="EmailTextBox" Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_NotLegalEmail %>"
                    ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="CreateUserWizard">
                </asp:RegularExpressionValidator>
            </td>
            <td>
                <div id="EmaildivStatus" runat="server">
                </div>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="PasswordTitleLabel" AssociatedControlID="PasswordTextBox" runat="server"
                    Text="<%$ Resources:SponsorsResource, NewSponsor_Password %>"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="PasswordTextBox" runat="server" Width="200px" MaxLength="100" TextMode="Password"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="PasswordTextBox"
                    Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_PasswordIsRequire %>"
                    ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="valPassword" runat="server" ControlToValidate="PasswordTextBox"
                    ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_MinPassLength %>" ValidationExpression=".{5}.*"
                    ValidationGroup="CreateUserWizard" />
            </td>
            <td>
                <cc1:PasswordStrength ID="Passwordstrength1" runat="server" PrefixText="<%$ Resources:SponsorsResource, Register_Strength %>"
                    TextStrengthDescriptionStyles="VeryPoor; Weak; Average; Strong; Excellent" DisplayPosition="RightSide"
                    MinimumNumericCharacters="1" MinimumSymbolCharacters="1" PreferredPasswordLength="8"
                    TextStrengthDescriptions="<%$ Resources:SponsorsResource, Register_PasswordStrength %>"
                    TargetControlID="PasswordTextBox">
                </cc1:PasswordStrength>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="ConfirmPasswordTitleLabel" runat="server" AssociatedControlID="ConfirmPasswordTextBox"
                    Text="<%$ Resources:SponsorsResource, NewSponsor_ConfirmPassword %>"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="ConfirmPasswordTextBox" runat="server" Width="200px" MaxLength="100"
                    TextMode="Password"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPasswordTextBox"
                    Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_ConfirmPasswordIsRequired %>"
                    ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="PasswordTextBox"
                    ControlToValidate="ConfirmPasswordTextBox" Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_PasswordCompareErrorMessage %>"
                    ValidationGroup="CreateUserWizard"></asp:CompareValidator>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="SecurityQuestionTitleLabel" runat="server" AssociatedControlID="SecurityQuestionTextBox"
                    Text="<%$ Resources:SponsorsResource, NewSponsor_SecurityQuestion %>"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="SecurityQuestionTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="SecurityQuestionFieldValidator" runat="server" ControlToValidate="SecurityQuestionTextBox"
                    Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_SecurityQuestionRequired %>"
                    ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="SecurityAnswerTitleLabel" runat="server" AssociatedControlID="SecurityAnswerTextBox"
                    Text="<%$ Resources:SponsorsResource, NewSponsor_SecurityAnswer %>"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="SecurityAnswerTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="SecurityAnswerRequiredFieldValidator" runat="server"
                    ControlToValidate="SecurityAnswerTextBox" Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_SecurityAnswerRequiredField %>"
                    ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="BannerTitleLabel" runat="server" AssociatedControlID="BannerFileUpload"
                    Text="<%$ Resources:SponsorsResource, NewSponsor_Banner %>"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="BannerFileUpload" runat="server" />
                <br />
                <asp:Label ID="BannerTipLabel" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_BannerSizeTip %>"></asp:Label>
            </td>
            <td>
                <div id="NoBannerDivAlert" runat="server">
                </div>
                <%--<asp:RequiredFieldValidator ID="BannerRequiredFieldValidator" runat="server" ControlToValidate="BannerFileUpload"
                        Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_BannerFileRequire %>" 
                        SetFocusOnError="true" ValidationGroup="CreateUserWizard"> 
                    </asp:RequiredFieldValidator>--%>
            </td>
            <td>
                <br />
                <asp:Button ID="UploadBannerButton" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_ShowBanner %>"
                    OnClick="Upload_Click" />
            </td>
            <td>
                <asp:Image Width="100px" runat="server" ID="NormalImage" Visible="false" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="LinkTitleLabel" AssociatedControlID="LinkTextBox" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_Link %>"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="LinkTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="LinkRequiredFieldValidator" runat="server" ControlToValidate="LinkTextBox"
                    Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_LinkRequired %>"
                    ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="SubmitButton" runat="server" ValidationGroup="CreateUserWizard" Text="<%$ Resources:SponsorsResource, NewSponsor_Submit %>"
                    OnClick="SubmitButton_Click" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
